package com.zprmb.udzt;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.zprmb.udzt.ll.BaseHelper;
/**
 * 我的奖励
 * @author shenshao
 *
 */
public class MyReward extends BaseActivity implements OnClickListener{
	private RelativeLayout rl_my_hongbao,rl_my_exgold,rl_my_coupon,rl_my_invate;
	private RelativeLayout rl_back;
	private ImageView img_back;
	private TextView tv_customer;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.my_reward);
		 BbtApplication.getInstance().addActvity(this);
		rl_my_hongbao=(RelativeLayout)findViewById(R.id.rl_my_hongbao);
		rl_my_exgold=(RelativeLayout)findViewById(R.id.rl_my_tiyan);
		rl_my_invate=(RelativeLayout)findViewById(R.id.rl_my_invite);
		img_back=(ImageView)findViewById(R.id.img_back);
		rl_my_coupon=(RelativeLayout)findViewById(R.id.rl_my_coupon);
		rl_back=(RelativeLayout)findViewById(R.id.rl_back);
		tv_customer=(TextView)findViewById(R.id.enterprise_tel);
		tv_customer.setOnClickListener(this);
		rl_back.setOnClickListener(this);
		img_back.setOnClickListener(this);
		rl_my_invate.setOnClickListener(this);
		rl_my_hongbao.setOnClickListener(this);
		rl_my_exgold.setOnClickListener(this);
		rl_my_coupon.setOnClickListener(this);
	}
	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
		BbtApplication.getInstance().removeActvity(this);
	}
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch(v.getId()){
		case R.id.rl_my_hongbao:
			 Intent intent=new Intent(MyReward.this,MyHongBao.class);
			 startActivity(intent);
			break;
		case R.id.img_back:
			finish();
			break;
		case R.id.rl_my_tiyan:
			Intent intent1=new Intent(MyReward.this,MyExperienceGold.class);
			 startActivity(intent1);
			break;
		case R.id.rl_my_coupon:
			Intent intent2=new Intent(MyReward.this,MyCoupon.class);
			 startActivity(intent2);
			break;
		case R.id.rl_my_invite:
			Intent intent3=new Intent(MyReward.this,My_invate.class);
			 startActivity(intent3);
			break;
		case R.id.rl_back:
				finish();
				break;
		case R.id.enterprise_tel:
			BaseHelper.showDialog2(this, "拨号", "400-0101-016", 1);
			break;
		}
		
	}

	

}
